package top.aicats.blog.BlogManage.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import top.aicats.blog.BlogManage.model.BlogContent;

import java.util.List;

/**
 * @author sjc
 * @version 1.0
 * @date 2020/1/11 15:35
 * @email 952491025@qq.com
 */
@Mapper
public interface BlogContentMapper {
    Integer insertOneBlog(BlogContent content);
    List<BlogContent> getAllBlogTitleBySubTypeRefid(BlogContent content);

    List<BlogContent> getAllBlogContentBySubTypeRefid(BlogContent content);

    List<BlogContent> getBlogTitleInfoByPaging(@Param("startPage") Integer startPage,
                                               @Param("pageSize") Integer pageSize,
                                               @Param("sortField") String sortField,
                                               @Param("sortOrder") Boolean desc);
}
